﻿package mortal.game.view.copy.crossMainCity.panels.sub
{
    import com.mui.controls.*;
    import com.mui.display.*;
    import extend.language.*;
    import flash.text.*;
    import mortal.common.*;
    import mortal.common.global.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;
    import mortal.game.view.common.item.*;

    public class MainCityBattleGuildKORender extends NoSkinCellRenderer
    {
        protected var _txtRank:GTextFiled;
        protected var _txtName:GTextFiled;
        protected var _txtValue:GTextFiled;
        protected var _line:ScaleBitmap;
        protected var _myData:MainCityBattleGuildRankData;
        protected var _endText:String = "/200";

        public function MainCityBattleGuildKORender()
        {
            return;
        }// end function

        override public function set data(param1:Object) : void
        {
            super.data = param1;
            this._myData = param1 as MainCityBattleGuildRankData;
            this._txtRank.text = this._myData.rank.toString();
            this._txtName.text = this._myData.name;
            this._txtValue.text = this._myData.value.toString() + this._endText;
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            var _loc_1:* = GlobalStyle.textFormatBai;
            _loc_1.align = TextFormatAlign.CENTER;
            this._txtRank = UIFactory.gTextField("1", -10, 3, 60, 22, this, _loc_1);
            this._txtName = UIFactory.gTextField(Language.getString(20929), 48, 3, 100, 22, this, _loc_1);
            this._txtValue = UIFactory.gTextField(Language.getString(20930), 144, 3, 100, 22, this, _loc_1);
            this._line = UIFactory.bg(0, 22, 223, 2, this, ImagesConst.SplitLine);
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            this._txtRank.dispose(param1);
            this._txtRank = null;
            this._txtName.dispose(param1);
            this._txtName = null;
            this._line.dispose(param1);
            this._line = null;
            this._txtValue.dispose(param1);
            this._txtValue = null;
            return;
        }// end function

    }
}
